package top.jlzhou.qqnews;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import com.alibaba.fastjson.JSON;
import com.geccocrawler.gecco.pipeline.Pipeline;
import com.geccocrawler.gecco.spider.SpiderBean;

@Service("defaultPipeline")
public class DefaultPipeline implements Pipeline<SpiderBean> {

	private Logger logger = LoggerFactory.getLogger(this.getClass());
	@Override
	public void process(SpiderBean bean) {
		logger.info(JSON.toJSONString(bean));
	}

}
